from BrushBook import BrushBook


regex = regex = '<p class="line"><a href="#">\[.*?\]</a><a href="(.*?)" class="blue">(.*?)</a>/<a href="/author/.*?" style="color:red">(.*?)</a>/月点击.*?</p>'
site_name = 'm.biqugela.com'
拼接 = 'http://m.biqugela.com'
for i in range(1,3245):#3245
    with open('{}进行到最后的id值.txt'.format(site_name),'w') as ff:
        ff.write(str(i))
    url = 'http://m.biqugela.com/top-allvisit-{}/'.format(i)
    print(url)
 
    bb = BrushBook(url,regex,site_name,拼接)

    bb.save_info_csv()

    

